<?php

require_once("Zend/Socket.php");

/**
 * @category   Zend
 * @package    Zend_Socket
 * @copyright  Salomon BRYS
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_Socket_Tcp extends Zend_Socket
{
	/**
	 * Creates a TCP socket (calls the constructor with the appropriate configuration array)
	 *
	 * @var int  $prot
	 * @var bool $ipv6
	 */
	public function __construct($protection = self::PROT_READWRITE, $ipv6 = false)
	{
		parent::__construct($protection, socket_create(($ipv6 ? AF_INET6 : AF_INET), SOCK_STREAM, SOL_TCP));
	}
}
